<div ng-controller="TaskListCtrl">
  <table class="table table-striped table-bordered table-condensed">
    <thead>
      <tr>
        <th>任务名称</th>
        <th>执行任务</th>
        <th>执行时间</th>
        <th>任务描述</th>
        <th>操作</th>
      </tr>
    </thead>
    <tbody>
      <tr selectable="e" ng-repeat="e in tasks">
        <td>{{e.title}}</td>
        <td>{{e.task}}</td>
        <td>{{e.start | date:'yyyy-MM-dd HH:mm:ss'}}</td>
        <td>{{e.description}}</td>
        <td><button class="btn btn-danger btn-mini" ng-click="delete($index)">删除</button></td>
      </tr>
    </tbody>
  </table>
  <div class="pagination">
    <ul>
        <li ng-hide="should_hide()" ng-class="prev_class" ng-click="prev()"><a href="javascript:void(0);">上一页</a></li>
        <li ng-repeat="i in [] | range:page_count()" ng-hide="should_hide()" ng-click="page(i)" ng-class="(i == current_page) && 'active'">
            <a href="javascript:void(0)">{{i + 1}}</a>
        </li>
        <li ng-hide="should_hide()" ng-class="next_class" ng-click="next()"><a href="javascript:void(0);">下一页</a></li>
    </ul>
  </div>
</div>